Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for to_substrait for virtual table expression #124

Conversation

anshuldata
Copy link
Contributor

No description provided.


auto json = con.GetSubstraitJSON("select * from (values (1, 2),(3, 4))");
REQUIRE(!json.empty());
std::cout << json << std::endl;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to test anything else besides that there wasn't an error during parsing? Perhaps call GetSubstrait and check a few things like the number of rows/columns is right, that the type of the read operation is a virtual table, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will done as part of from_substrait PR. Waiting on a change from duckdb (Constructor having RelationContextWrapper and ParsedExpression) once it is in, same test case will be enhanced to check roundtrip

@anshuldata
Copy link
Contributor Author

included this change as part of #130 . Closing this PR

@anshuldata anshuldata closed this Nov 21, 2024
@anshuldata anshuldata deleted the anshul/to_substraitValueRelation branch November 21, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants